<?php if(!defined('IN_FANWE')) exit('Access Denied'); if($cate_list) { if(is_array($cate_list)) { foreach($cate_list as $citem) { ?><div class="piece1 mb20">
<div class="piece1_hd"></div>
<div class="piece1_bd" style="padding:5px 25px ">
<div class="share_title">
<em><a target="_blank" href="<?php echo FU('book/cate',array("cate"=>$citem['cate']['cate_code'])); ?>"><span>分享</span><?php echo $citem['cate']['short_name'];?></a></em>
<span class="st_key">
<a target="_blank" href="<?php echo FU('book/cate',array("cate"=>$citem['cate']['cate_code'],"sort"=>"hot1")); ?>">热门</a>
<a target="_blank" href="<?php echo FU('book/cate',array("cate"=>$citem['cate']['cate_code'],"sort"=>"new")); ?>">最新</a>
<span>|</span><?php $tag_index =1; if(is_array($citem['cate']['index_tags'])) { foreach($citem['cate']['index_tags'] as $tag) { ?><a target="_blank" href="<?php echo FU('book/cate',array("sort"=>"hot1","tag"=>$tag['url_tag'],"cate"=>$citem['cate']['cate_code'])); ?>"><?php echo $tag['tag_name'];?></a>
<?php if($tag_index > 11) { ?><?php break; } ?><?php $tag_index++; } } ?>
</span>
<span class="more fr">
<a href="<?php echo FU('book/cate',array("cate"=>$citem['cate']['cate_code'])); ?>">更多>></a>
</span>
</div>
<div class="cate_share_box">
<ul>
<li ckass="first"><!--dynamic advLayoutName args=分类右侧大图广告185X330,,<?php echo $citem['cate']['cate_code'];?>--></li><?php $cate_idx = 1; if(is_array($citem['share_list'])) { foreach($citem['share_list'] as $share) { if($cate_idx <9) { if(($cate_idx>=1 && $cate_idx<=3) ||($cate_idx>=6 && $cate_idx<=8)) { ?><?php $class = 'two'; if($cate_idx>=1 && $cate_idx<=3) { ?><?php $left=195+($cate_idx-1)*160; ?><?php $top=0; } else { ?><?php $left=440+($cate_idx-6)*160; ?><?php $top=170; } ?><?php $img_w=150; ?><?php $img_h=160; ?><?php $img_s=160; } elseif($cate_idx>=4&&$cate_idx<=5) { ?><?php $class = 'three'; if($cate_idx==4) { ?><?php $top=0; ?><?php $left=675; } else { ?><?php $top=170; ?><?php $left=195; } ?><?php $img_w=235; ?><?php $img_h=160; ?><?php $img_s=468; } ?>
<li class="<?php echo $class;?>" style="top:<?php echo $top;?>px;left:<?php echo $left;?>px">
<a href="<?php echo $share['url'];?>" target="_blank" style="display:block;width:<?php echo $img_w;?>px;height:<?php echo $img_h;?>px;overflow:hidden;">
<img class="img lazyload" src="./tpl/images/lazyload.gif" original="<?php echo getImgName($share['img'],$img_s,$img_s,0); ?>" scaleType="3" scaleWidth="<?php echo $img_w;?>" scaleHeight="<?php echo $img_h;?>" />
</a>
<a class="trsp_bg w<?php echo $img_w;?>" href="<?php echo $share['url'];?>" target="_blank">
<h4>
<span class="likeit fl">
<b class="nums red"><?php echo $share['collect_count'];?></b>
</span>
<span class="f12 fr"><?php echo $share['name'];?></span>
</h4>
</a>
</li><?php $cate_idx++; } } } ?>
</ul>
</div>
<div class="cate_share_who  clearfix">
<div class="t fl">
分享 <a target="_blank" href="<?php echo FU('book/cate',array("cate"=>$citem['cate_code'])); ?>"><?php echo $citem['short_name'];?></a> 的<br>MM们
</div>
<ul class="fl clearfix"><?php $user_index = 0; if(is_array($citem['users'])) { foreach($citem['users'] as $uid => $user) { if($uid > 0) { ?>
<li>
<?php if($user_index > 4) { ?><?php break; } ?><?php $user_index++; ?><?php echo setTplUserFormat($uid,0,0,'',0,'','','inc/getuser/index_cate_share'); ?><div class="follow fl"><!--getfollow <?php echo $uid;?> inc/getfollow/index_cate_share--></div>
</li>
<?php } } } ?>
</ul>
<div class="share_count fr">
<?php if($citem['today_count'] > 0) { ?>
<span>今日上新</span><br>
<b><?php echo $citem['today_count'];?>件</b>
<?php } ?>
</div>
</div>
</div>
<div class="piece1_ft"></div>
</div>
<?php } } ?>
<script>
function CateUpdateUserFollow(obj,result)
{
if(result.status == 1)
{
$(obj).before('<img src="./tpl/images/flow_ok.gif" />');
$(obj).remove();
}
else{
$(obj).before('<img src="./tpl/images/to_flow.gif" />');
$(obj).remove();
}
}

jQuery(function(){
$('.cate_share_box li').hover(function(){
$(this).children('.trsp_bg').stop().animate( { height: "80px" }, 300 );
$(this).children('.trsp_bg').find('h4 .f12').stop().animate({ fontSize: "18px" }, 50);
},
function(){
$(this).children('.trsp_bg').stop().animate( { height: "30px" }, 300 );
$(this).children('.trsp_bg').find('h4 .f12').stop().animate({ fontSize: "12px" }, 50);
});
});
</script>
<?php } ?>